Skip to contentSkip to conversation

fs/gfs2: remove IS_DINODE

PATCH In review Alex Shi 2 participants 3 messages Jan 21, 2020 GFS2 file system

lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 fs/gfs2: remove IS_DINODE

After commit 1579343a73e3 ("GFS2: Remove dirent_first() function"), this macro isn't used any more. so remove it.

Cc Bob Peterson <[email protected]>
Cc Andreas Gruenbacher <[email protected]>
Cc cluster-devel at redhat.com
Cc linux-kernel at vger.kernel.org
---
 fs/gfs2/dir.c | 1 -
 1 file changed, 1 deletion(-)
fs/gfs2/dir.c +0 -1
index eb9c0578978f..636a8d0f3dab 100644
@@ -74,7 +74,6 @@
 #include "util.h"
 
 #define IS_LEAF     1 /* Hashed (leaf) directory */
-#define IS_DINODE   2 /* Linear (stuffed dinode block) directory */
 
 #define MAX_RA_BLOCKS 32 /* max read-ahead blocks */
 
Signature · 1 line
1.8.3.1
#1 lore raw

Alex,

Am Di., 21. Jan. 2020 um 09:50 Uhr schrieb Alex Shi <[email protected]>:

Quoted 17 lines

After commit 1579343a73e3 ("GFS2: Remove dirent_first() function"), this macro isn't used any more. so remove it.

Cc Bob Peterson <[email protected]>
Cc Andreas Gruenbacher <[email protected]>
Cc cluster-devel at redhat.com
Cc linux-kernel at vger.kernel.org
---
 fs/gfs2/dir.c | 1 -
 1 file changed, 1 deletion(-)
fs/gfs2/dir.c +0 -0
index eb9c0578978f..636a8d0f3dab 100644

fs/gfs2/dir.c line 77

Quoted 4 lines
fs/gfs2/dir.c +0 -1
@@ -74,7 +74,6 @@
 #include "util.h"
 
 #define IS_LEAF     1 /* Hashed (leaf) directory */
-#define IS_DINODE   2 /* Linear (stuffed dinode block) directory */

The same is true for the IS_LEAF macro. I'm adjusting the patch accordingly.

The other patch removing the LBIT macros looks good as well, so I'm applying both.

Thanks,
Andreas

author
#2 lore raw

? 2020/1/21 ??6:23, Andreas Gr?nbacher ??:

Quoted 23 lines

Alex,

Am Di., 21. Jan. 2020 um 09:50 Uhr schrieb Alex Shi <[email protected]>:

Quoted 19 lines

After commit 1579343a73e3 ("GFS2: Remove dirent_first() function"), this macro isn't used any more. so remove it.

Cc Bob Peterson <[email protected]>
Cc Andreas Gruenbacher <[email protected]>
Cc cluster-devel at redhat.com
Cc linux-kernel at vger.kernel.org
---
 fs/gfs2/dir.c | 1 -
 1 file changed, 1 deletion(-)
fs/gfs2/dir.c +0 -0
index eb9c0578978f..636a8d0f3dab 100644
@@ -74,7 +74,6 @@
 #include "util.h"
 
Quoted 5 lines

fs/gfs2/dir.c line 77

Quoted 2 lines
fs/gfs2/dir.c +0 -1
 #define IS_LEAF     1 /* Hashed (leaf) directory */
-#define IS_DINODE   2 /* Linear (stuffed dinode block) directory */

The same is true for the IS_LEAF macro. I'm adjusting the patch accordingly.

I oversee this. Sorry.

Quoted 2 lines

The other patch removing the LBIT macros looks good as well, so I'm applying both.

Thanks a lot!
Alex