Commit 051178c
committed
super: use higher-level helper for {freeze,thaw}
It's not necessary to use low-level locking helpers here. Use the
higher-level locking helpers and log if the superblock is dying. Since
the caller is assumed to already hold an active reference it isn't
possible to observe a dying superblock.
Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 2c18a63 commit 051178c
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1873 | 1873 | | |
1874 | 1874 | | |
1875 | 1875 | | |
| 1876 | + | |
1876 | 1877 | | |
1877 | | - | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
1878 | 1883 | | |
1879 | 1884 | | |
1880 | 1885 | | |
| |||
1896 | 1901 | | |
1897 | 1902 | | |
1898 | 1903 | | |
1899 | | - | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
1900 | 1908 | | |
1901 | 1909 | | |
1902 | 1910 | | |
| |||
1979 | 1987 | | |
1980 | 1988 | | |
1981 | 1989 | | |
1982 | | - | |
| 1990 | + | |
| 1991 | + | |
1983 | 1992 | | |
1984 | 1993 | | |
1985 | 1994 | | |
| |||
0 commit comments