]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/gfs2/dir.c
[GFS2] Make sentinel dirents compatible with gfs1
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 17 Nov 2006 17:27:44 +0000 (12:27 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 30 Nov 2006 15:36:20 +0000 (10:36 -0500)
commit5e7d65cd9d3819512b059f4260de0119b985454c
treef6e09c9eff9dfa4197cc6da8d153f314737026db
parentdcd2479959c79d44f5dd77e71672e70f1f8b1f06
[GFS2] Make sentinel dirents compatible with gfs1

When deleting directory entries, we set the inum.no_addr to zero
in a dirent when its the first dirent in a block and thus cannot
be merged into the previous dirent as is the usual case. In gfs1,
inum.no_formal_ino was used instead.

This patch changes gfs2 to set both inum.no_addr and inum.no_formal_ino
to zero. It also changes the test from just looking at inum.no_addr to
look at both inum.no_addr and inum.no_formal_ino and a sentinel is
now considered to be a dirent in which _either_ (or both) of them
is set to zero.

This resolves Red Hat bugzillas: #215809, #211465

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/dir.c