[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090821134207.GA20935@atrey.karlin.mff.cuni.cz>
Date: Fri, 21 Aug 2009 15:42:07 +0200
From: Jan Kara <jack@...e.cz>
To: npiggin@...e.de
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-fsdevel@...r.kernel.org, Christoph Hellwig <hch@....de>,
linux-ext4@...r.kernel.org
Subject: Re: [patch 06/11] ext2: convert to use the new truncate convention.
Hi,
> I also have commented a possible bug in existing ext2 code, marked with XXX.
Looks good, except:
> +int ext2_setsize(struct inode *inode, loff_t newsize)
This could be static.
> @@ -1459,8 +1540,15 @@ int ext2_setattr(struct dentry *dentry,
> if (error)
> return error;
> }
> - error = inode_setattr(inode, iattr);
> + if (iattr->ia_valid & ATTR_SIZE) {
> + error = ext2_setsize(inode, iattr->ia_size);
> + if (error)
> + return error;
> + }
> + generic_setattr(inode, iattr);
Here, we should store the error code I suppose...
Honza
--
Jan Kara <jack@...e.cz>
SuSE CR Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists