[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <00e901d0b2e7$0fa893c0$2ef9bb40$@samsung.com>
Date: Tue, 30 Jun 2015 11:43:29 +0800
From: Chao Yu <chao2.yu@...sung.com>
To: 'Jaegeuk Kim' <jaegeuk@...nel.org>
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-f2fs-devel@...ts.sourceforge.net
Subject: RE: [f2fs-dev] [PATCH 08/12] f2fs: introduce a shrinker for mounted fs
> -----Original Message-----
> From: Jaegeuk Kim [mailto:jaegeuk@...nel.org]
> Sent: Tuesday, June 30, 2015 2:40 AM
> To: linux-kernel@...r.kernel.org; linux-fsdevel@...r.kernel.org;
> linux-f2fs-devel@...ts.sourceforge.net
> Cc: Jaegeuk Kim
> Subject: [f2fs-dev] [PATCH 08/12] f2fs: introduce a shrinker for mounted fs
>
> This patch introduces a shrinker targeting to reduce memory footprint consumed
> by a number of in-memory f2fs data structures.
>
> In addition, it newly adds:
> - sbi->umount_mutex to avoid data races on shrinker and put_super
> - sbi->shruinker_run_no to not revisit objects
>
> Noteh that the basic implementation was copied from fs/btrfs/shrinker.c
Great! Good to see it's being implemented in f2fs.
>
> Signed-off-by: Jaegeuk Kim <jaegeuk@...nel.org>
Reviewed-by: Chao Yu <chao2.yu@...sung.com>
[snip]
> @@ -1406,6 +1425,9 @@ static int __init init_f2fs_fs(void)
> err = f2fs_init_crypto();
> if (err)
> goto free_kset;
> +
> + register_shrinker(&f2fs_shrinker_info);
This function can fail due to no memory, please check the return value here.
Thanks,
--
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