patch-2.1.103 linux/fs/ext2/fsync.c

Next file: linux/fs/fat/fatfs_syms.c
Previous file: linux/fs/ext2/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.102/linux/fs/ext2/fsync.c linux/fs/ext2/fsync.c
@@ -260,9 +260,6 @@
 	int wait, err = 0;
 	struct inode *inode = dentry->d_inode;
 
-	if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
-	     S_ISLNK(inode->i_mode)))
-		return -EINVAL;
 	if (S_ISLNK(inode->i_mode) && !(inode->i_blocks))
 		/*
 		 * Don't sync fast links!

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov