minor bug in notify_change() (2.3.48)

From: V Ganesh (ganesh@veritas.com)
Date: Wed Mar 01 2000 - 01:32:44 EST


small bug in notify_change(), basically a remnant from when notify_change()
was a superblock op.

ganesh

--- linux/fs/attr.c.ORG Wed Mar 1 13:13:28 2000
+++ linux/fs/attr.c Wed Mar 1 13:13:57 2000
@@ -91,8 +91,7 @@
         if (!(ia_valid & ATTR_MTIME_SET))
                 attr->ia_mtime = now;
 
- if (inode->i_sb && inode->i_sb->s_op &&
- inode->i_op->setattr)
+ if (inode && inode->i_op && inode->i_op->setattr)
                 error = inode->i_op->setattr(dentry, attr);
         else {
                 error = inode_change_ok(inode, attr);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:09 EST