[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 5 May 2008 09:04:47 -0400
From: Christoph Hellwig <hch@...radead.org>
To: Miklos Szeredi <miklos@...redi.hu>
Cc: hch@...radead.org, akpm@...ux-foundation.org,
viro@...IV.linux.org.uk, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org, drepper@...hat.com
Subject: Re: [patch 13/15] vfs: utimes cleanup
On Mon, May 05, 2008 at 02:39:47PM +0200, Miklos Szeredi wrote:
> > checks into it aswell, even if that means a little flag telling if
> > file->f_mode should be checked or vfs_permission().
>
> How would that be better? There's zero commonality between the two
> kinds of permission checks (other than utimes_need_permission()).
it looks very similar. but actually given that the next patch removes
the IS_IMMUTABLE check in the fd case it isn't anymore. You're probably
right that it doesn't make sense to move it to the common one.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists