[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160329063544.GA3588@yaowei-K42JY>
Date: Tue, 29 Mar 2016 14:35:44 +0800
From: Yaowei Bai <baiyaowei@...s.chinamobile.com>
To: Al Viro <viro@...IV.linux.org.uk>
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fs/vfs: improve __mnt_is_readonly
On Sat, Mar 26, 2016 at 12:43:32AM +0000, Al Viro wrote:
> On Fri, Mar 25, 2016 at 10:01:26AM +0800, Yaowei Bai wrote:
> > This patch refactors __mnt_is_readonly and makes it return bool to
> > improve readability due to this particular function only using either
> > one or zero as its return value.
>
> Improve in which way, if I may ask?
A boolean return value can be more matchable with function's name and
more suitable as this function only returns 0/1.
Powered by blists - more mailing lists