[Cluster-devel] GFS2: Pull request (merge window)

2016-10-03 Thread Bob Peterson
Hi Linus, Please consider pulling the following changes for the GFS2 file system. Bob Peterson The following changes since commit 731c7d3a205ba89b475b2aa71b5f13dd6ae3de56: Merge tag 'drm-for-v4.8' of

[Cluster-devel] [PATCH 1/6] GFS2: use BIT() macro

2016-10-03 Thread Bob Peterson
From: Fabian Frederick Replace 1 << value shift by more explicit BIT() macro Also fixes two bare unsigned definitions: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' + unsigned hsize = BIT(ip->i_depth); Signed-off-by: Fabian Frederick

[Cluster-devel] [PATCH 2/6] gfs2: Remove dirty buffer warning from gfs2_releasepage

2016-10-03 Thread Bob Peterson
From: Andreas Gruenbacher Unlike what its documentation suggests, the releasepage address space operation can currently be called on dirty pages via shrink_active_list. This may eventually be changed when the remaining code relying on the current behavior has been fixed, but

[Cluster-devel] [PATCH 4/6] gfs2: fix to detect failure of register_shrinker

2016-10-03 Thread Bob Peterson
From: Chao Yu register_shrinker can fail after commit 1d3d4437eae1 ("vmscan: per-node deferred work"), we should detect the failure of it, otherwise we may fail to register shrinker after gfs2 module was been inited successfully. Signed-off-by: Chao Yu

[Cluster-devel] [PATCH 5/6] gfs2: Update file times after grabbing glock

2016-10-03 Thread Bob Peterson
From: Andreas Gruenbacher In gfs2_page_mkwrite, grab the inode glock in EX mode before calling file_update_time: grabbing the lock may result in a call to gfs2_dinode_in, which will reset the file times to their on-disk state. Signed-off-by: Andreas Gruenbacher

[Cluster-devel] [PATCH 6/6] gfs2: Initialize atime of I_NEW inodes

2016-10-03 Thread Bob Peterson
From: Andreas Gruenbacher Fix for commit 719ee344: initialize atime of I_NEW inodes to 0 so that the timestamps read from disk will always be more recent than the initial timestamp, and the atime in the I_NEW inode will be set correctly. Signed-off-by: Andreas Gruenbacher

[Cluster-devel] [PATCH 3/6] gfs2: Fix extended attribute readahead optimization

2016-10-03 Thread Bob Peterson
From: Andreas Gruenbacher Commit 39b0555f didn't check for a failing bio_add_page in gfs2_submit_bhs. This could cause I/O requests to get lost, and the affected buffer heads to stay locked forever. Fix that by submitting the current bio and allocating another one when

[Cluster-devel] [PATCH 0/6] GFS2: Pre-pull patch posting (merge window)

2016-10-03 Thread Bob Peterson
Hi, We've only got six GFS2 patches for this merge window. In patch order: 1. Fabian Frederick submitted a nice cleanup that uses the BIT macro rather than bit shifting. 2. Andreas Gruenbacher contributed a patch that fixes a long-standing annoyance whereby GFS2 warned about dirty pages.