X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fext3%2Fioctl.c;h=5e86ce9a86e05b20d3ffe297dd4b9191fee08994;hb=7c51d57e9d7fbce89f79c41dc8da383101dbe9c6;hp=b7394d05ee8e9e8261d2a6e8be983b83781d2211;hpb=e82cff752f57810a2259415ad2e9087c2d69484c;p=mv-sheeva.git diff --git a/fs/ext3/ioctl.c b/fs/ext3/ioctl.c index b7394d05ee8..5e86ce9a86e 100644 --- a/fs/ext3/ioctl.c +++ b/fs/ext3/ioctl.c @@ -53,8 +53,7 @@ int ext3_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, goto flags_out; } - if (!S_ISDIR(inode->i_mode)) - flags &= ~EXT3_DIRSYNC_FL; + flags = ext3_mask_flags(inode->i_mode, flags); mutex_lock(&inode->i_mutex); /* Is it quota file? Do not allow user to mess with it */