* gets marked dirty, but won't (ever) make it onto the dirty list until
* it's synced explicitly to clear I_DIRTY. This is bad. */
if (!hlist_unhashed(&inode->i_hash)) {
- inode->i_ctime = CURRENT_TIME;
+ inode->i_ctime = CURRENT_TIME_SEC;
mark_inode_dirty (inode);
}
dput (dir);
if (!err) {
- inode->i_ctime = CURRENT_TIME;
+ inode->i_ctime = CURRENT_TIME_SEC;
mark_inode_dirty (inode);
}
err = reiserfs_xattr_del (dentry->d_inode, name);
- dentry->d_inode->i_ctime = CURRENT_TIME;
+ dentry->d_inode->i_ctime = CURRENT_TIME_SEC;
mark_inode_dirty (dentry->d_inode);
out:
/* This is the implementation for the xattr plugin infrastructure */
static struct list_head xattr_handlers = LIST_HEAD_INIT (xattr_handlers);
-static rwlock_t handler_lock = RW_LOCK_UNLOCKED;
+static DEFINE_RWLOCK(handler_lock);
static struct reiserfs_xattr_handler *
find_xattr_handler_prefix (const char *prefix)