[GFS2] Remove gfs2_repermission

gfs2_repermission is just a wrapper for permission, so remove it and
call permission directly where required.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
Steven Whitehouse
2006-06-22 10:59:10 -04:00
parent d9d1ca3050
commit faf450ef4a
5 changed files with 9 additions and 20 deletions

View File

@@ -640,7 +640,7 @@ static int do_gfs2_set_flags(struct file *filp, u32 reqflags, u32 mask)
!capable(CAP_LINUX_IMMUTABLE))
goto out;
if (!IS_IMMUTABLE(inode)) {
error = gfs2_repermission(inode, MAY_WRITE, NULL);
error = permission(inode, MAY_WRITE, NULL);
if (error)
goto out;
}