Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trivial nitpicks for e4defrag2 #1

Closed
wants to merge 6 commits into from

Conversation

kolyshkin
Copy link

Wrong branch, please ignore

Dmitry Monakhov and others added 6 commits July 23, 2014 16:23
STATE: "Wed Jul 23 16:14:42 MSK 2014"
       1-3 stages are fully functional
       
       4: [In progress] Kernel part is functional and submitted here:
       	            http://marc.info/?l=linux-ext4&m=140606283832640
TODO:
	- Implement good algo for finding local donor
	  May be simply add ioctl for mballoc
	- Cleanup debug for flex_bg
	- Cleanup usless debugging.
This is obviously logical typo. We have to scan only ones which are
(rfh->flags & SP_FL_IEF_RELOC) && (!rfh->flags & SP_FL_IGNORE)
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
These are mostly typos, plus some whitespace nitpicks, missing commas,
missing articles and so on.

Of particular interest here is the amount of ways to misspell the word
"defragmentation".

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Argument mntid of name_to_handle_at() should be "int", not "unsigned
int". Fixes a bunch of compiler warnings like this one:

e4defrag2.c:890:44: warning: pointer targets in passing argument 4 of ‘name_to_handle_at’ differ in signedness [-Wpointer-sign]
  ret = name_to_handle_at(dirfd, name, fhp, &mnt, 0);
                                            ^
In file included from /usr/include/bits/fcntl.h:61:0,
                 from /usr/include/fcntl.h:35,
                 from e4defrag2.c:25:
/usr/include/bits/fcntl-linux.h:406:12: note: expected ‘int *’ but argument is of type ‘unsigned int *’
 extern int name_to_handle_at (int __dfd, const char *__name,
            ^

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
@kolyshkin kolyshkin closed this Jul 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant