Re: [PATCH 1/2] f2fs: add remount_fs callback support

From: Namjae Jeon
Date: Thu Jun 06 2013 - 09:05:09 EST


[snip]
>>
>>>
>>>> +
>>>> + /**
>>>> + * We stop the GC thread if FS is mounted as RO
>>>> + * or if background_gc = 0 is passed in mount
>>>> + * option. Also sync the filesystem.
>>>> + */
>>>> + if ((*flags & MS_RDONLY) || !test_opt(sbi, BG_GC)) {
>>>
>>>
>>> Another condition: The old mount is not RO.
>> I don't think that it is needed. I think current condition check can
>> be covered about all cases.
>> Am I missing something ?
>
Hi Gu.
> Maybe. If the old mount is RO, so does the remount. It still can pass the judgement here, right?
> Though the following stop_gc_thread() and f2fs_sync_fs() can handle this case well, but this
> is unnecessary and needless. If we add additional judgement of whether old mount is not RO can avoid this.
>
Okay, I understand.
I will update it on v2 patch.

Thanks~.
> Thanks,
> Gu
>
>>
>>>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/