Repository navigation
Commit b2b6ebf
ocfs2: properly set and use inode group alloc hint
We were setting ac->ac_last_group in ocfs2_claim_suballoc_bits from
res->sr_bg_blkno. Unfortunately, res->sr_bg_blkno is going to be zero under
normal (non-fragmented) circumstances. The discontig block group patches
effectively turned off that feature. Fix this by correctly calculating what
the next group hint should be.
Acked-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Tested-by: Goldwyn Rodrigues <rgoldwyn@suse.de>
Signed-off-by: Tao Ma <tao.ma@oracle.com>1 parent 889f004 commit b2b6ebf
1 file changed
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
65 | 76 | | |
66 | 77 | | |
67 | 78 | | |
| |||
1845 | 1856 | | |
1846 | 1857 | | |
1847 | 1858 | | |
| 1859 | + | |
1848 | 1860 | | |
1849 | 1861 | | |
1850 | 1862 | | |
| |||
1872 | 1884 | | |
1873 | 1885 | | |
1874 | 1886 | | |
1875 | | - | |
| 1887 | + | |
1876 | 1888 | | |
1877 | 1889 | | |
1878 | 1890 | | |
| |||
1896 | 1908 | | |
1897 | 1909 | | |
1898 | 1910 | | |
1899 | | - | |
| 1911 | + | |
| 1912 | + | |
1900 | 1913 | | |
| 1914 | + | |
1901 | 1915 | | |
1902 | 1916 | | |
1903 | 1917 | | |
| |||
1920 | 1934 | | |
1921 | 1935 | | |
1922 | 1936 | | |
1923 | | - | |
| 1937 | + | |
| 1938 | + | |
1924 | 1939 | | |
| 1940 | + | |
1925 | 1941 | | |
1926 | 1942 | | |
1927 | 1943 | | |
| |||
1936 | 1952 | | |
1937 | 1953 | | |
1938 | 1954 | | |
1939 | | - | |
| 1955 | + | |
1940 | 1956 | | |
1941 | 1957 | | |
1942 | 1958 | | |
| |||
0 commit comments