hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/gfs2/dir.h
....@@ -1,10 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
34 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
4
- *
5
- * This copyrighted material is made available to anyone wishing to use,
6
- * modify, copy, or redistribute it subject to the terms and conditions
7
- * of the GNU General Public License version 2.
85 */
96
107 #ifndef __DIR_DOT_H__
....@@ -35,8 +32,7 @@
3532 const struct gfs2_inode *ip, struct gfs2_diradd *da);
3633 static inline void gfs2_dir_no_add(struct gfs2_diradd *da)
3734 {
38
- if (da->bh)
39
- brelse(da->bh);
35
+ brelse(da->bh);
4036 da->bh = NULL;
4137 }
4238 extern int gfs2_dir_del(struct gfs2_inode *dip, const struct dentry *dentry);