X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fjfs%2Fxattr.c;h=cf3fba6e5d781124b160ccf299c7887ffb185a1d;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=c786348cdb00fa5a8f7fb41695cb64e6815990b6;hpb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;p=linux-2.6.git diff --git a/fs/jfs/xattr.c b/fs/jfs/xattr.c index c786348cd..cf3fba6e5 100644 --- a/fs/jfs/xattr.c +++ b/fs/jfs/xattr.c @@ -592,7 +592,7 @@ static int ea_put(struct inode *inode, struct ea_buffer *ea_buf, int new_size) if (new_size == 0) { ea_release(inode, ea_buf); - ea_buf = 0; + ea_buf = NULL; } else if (ea_buf->flag & EA_INLINE) { assert(new_size <= sizeof (ji->i_inline_ea)); ji->mode2 &= ~INLINEEA; @@ -633,7 +633,7 @@ static int ea_put(struct inode *inode, struct ea_buffer *ea_buf, int new_size) } ji->ea = ea_buf->new_ea; } else { - txEA(tid, inode, &ji->ea, 0); + txEA(tid, inode, &ji->ea, NULL); if (ji->ea.flag & DXD_INLINE) ji->mode2 |= INLINEEA; ji->ea.flag = 0; @@ -1039,5 +1039,5 @@ ssize_t jfs_listxattr(struct dentry * dentry, char *data, size_t buf_size) int jfs_removexattr(struct dentry *dentry, const char *name) { - return __jfs_setxattr(dentry->d_inode, name, 0, 0, XATTR_REPLACE); + return __jfs_setxattr(dentry->d_inode, name, NULL, 0, XATTR_REPLACE); }