* [PATCH] fasync: Use tabs instead of spaces in code indent
@ 2021-11-10 6:29 Wen Gu
2021-11-10 10:58 ` Jeff Layton
0 siblings, 1 reply; 3+ messages in thread
From: Wen Gu @ 2021-11-10 6:29 UTC (permalink / raw)
To: viro, jlayton, bfields
Cc: linux-fsdevel, linux-kernel, dust.li, tonylu, xuanzhuo, guwen
When I investigated about fasync_list in SMC network subsystem,
I happened to find that here uses spaces instead of tabs in code
indent and fix this by the way.
Fixes: f7347ce4ee7c ("fasync: re-organize fasync entry insertion to
allow it under a spinlock")
Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Reviewed-by: Tony Lu <tonylu@linux.alibaba.com>
---
fs/fcntl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/fcntl.c b/fs/fcntl.c
index 9c6c6a3..36ba188 100644
--- a/fs/fcntl.c
+++ b/fs/fcntl.c
@@ -927,7 +927,7 @@ void fasync_free(struct fasync_struct *new)
*/
struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, struct fasync_struct *new)
{
- struct fasync_struct *fa, **fp;
+ struct fasync_struct *fa, **fp;
spin_lock(&filp->f_lock);
spin_lock(&fasync_lock);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fasync: Use tabs instead of spaces in code indent
2021-11-10 6:29 [PATCH] fasync: Use tabs instead of spaces in code indent Wen Gu
@ 2021-11-10 10:58 ` Jeff Layton
2021-11-10 11:38 ` Wen Gu
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Layton @ 2021-11-10 10:58 UTC (permalink / raw)
To: Wen Gu, viro, bfields
Cc: linux-fsdevel, linux-kernel, dust.li, tonylu, xuanzhuo
On Wed, 2021-11-10 at 14:29 +0800, Wen Gu wrote:
> When I investigated about fasync_list in SMC network subsystem,
> I happened to find that here uses spaces instead of tabs in code
> indent and fix this by the way.
>
> Fixes: f7347ce4ee7c ("fasync: re-organize fasync entry insertion to
> allow it under a spinlock")
> Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
> Reviewed-by: Tony Lu <tonylu@linux.alibaba.com>
> ---
> fs/fcntl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/fcntl.c b/fs/fcntl.c
> index 9c6c6a3..36ba188 100644
> --- a/fs/fcntl.c
> +++ b/fs/fcntl.c
> @@ -927,7 +927,7 @@ void fasync_free(struct fasync_struct *new)
> */
> struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, struct fasync_struct *new)
> {
> - struct fasync_struct *fa, **fp;
> + struct fasync_struct *fa, **fp;
>
> spin_lock(&filp->f_lock);
> spin_lock(&fasync_lock);
Hi Wen,
I usually don't take patches that just fix whitespace like this. The
reason is that these sorts of patches tend to make backporting difficult
as they introduce merge conflicts for no good reason.
When you're making substantial changes in an area, then please do go
ahead and fix up whitespace in the same area, but patches that just fix
up whitespace are more trouble than they are worth.
Sorry,
--
Jeff Layton <jlayton@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fasync: Use tabs instead of spaces in code indent
2021-11-10 10:58 ` Jeff Layton
@ 2021-11-10 11:38 ` Wen Gu
0 siblings, 0 replies; 3+ messages in thread
From: Wen Gu @ 2021-11-10 11:38 UTC (permalink / raw)
To: Jeff Layton, viro, bfields
Cc: linux-fsdevel, linux-kernel, dust.li, tonylu, xuanzhuo, guwen
On 2021/11/10 6:58 pm, Jeff Layton wrote:
> On Wed, 2021-11-10 at 14:29 +0800, Wen Gu wrote:
>> When I investigated about fasync_list in SMC network subsystem,
>> I happened to find that here uses spaces instead of tabs in code
>> indent and fix this by the way.
>>
>> Fixes: f7347ce4ee7c ("fasync: re-organize fasync entry insertion to
>> allow it under a spinlock")
>> Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
>> Reviewed-by: Tony Lu <tonylu@linux.alibaba.com>
>> ---
>> fs/fcntl.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/fs/fcntl.c b/fs/fcntl.c
>> index 9c6c6a3..36ba188 100644
>> --- a/fs/fcntl.c
>> +++ b/fs/fcntl.c
>> @@ -927,7 +927,7 @@ void fasync_free(struct fasync_struct *new)
>> */
>> struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, struct fasync_struct *new)
>> {
>> - struct fasync_struct *fa, **fp;
>> + struct fasync_struct *fa, **fp;
>>
>> spin_lock(&filp->f_lock);
>> spin_lock(&fasync_lock);
>
> Hi Wen,
>
> I usually don't take patches that just fix whitespace like this. The
> reason is that these sorts of patches tend to make backporting difficult
> as they introduce merge conflicts for no good reason.
>
> When you're making substantial changes in an area, then please do go
> ahead and fix up whitespace in the same area, but patches that just fix
> up whitespace are more trouble than they are worth.
>
> Sorry,
>
Thank you for the reminding. I didn't realize my unintentional action
would bring trouble to the backport. I will keep this in mind.
Thanks,
Wen Gu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-11-10 11:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-10 6:29 [PATCH] fasync: Use tabs instead of spaces in code indent Wen Gu
2021-11-10 10:58 ` Jeff Layton
2021-11-10 11:38 ` Wen Gu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).